package com.zengqingfa.juc.n4;

import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * @author zengqingfa
 * @className Test7Impl
 * @description
 * @create 2021/6/11 23:32
 */
public class Test7Impl extends Test7 {

    @Override
    public void foo(SimpleDateFormat sdf) {
        String dateStr = "1999-10-11 00:00:00";
        for (int i = 0; i < 20; i++) {
            new Thread(() -> {
                try {
                    sdf.parse(dateStr);
                } catch (ParseException e) {
                    e.printStackTrace();
                }
            }).start();
        }
    }
}